﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MvcMovie.Models
{
    public class Movie
    {
        public int ID { get; set; }
        [Required]
        public string Name { get; set; }
        public string Genra { get; set; }
        [Range(1, 100)]
        [DataType(DataType.Currency)]  
        public decimal Price { get; set; }
        [DataType(DataType.Date)]  
        public DateTime Date { get; set; }
        [StringLength(5)]
        public string Rating { get; set; }
    }
}